package com.example;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

public class ProviderMain {
    public static void main(String[] args) throws Exception {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(PropertiesConfig.class);
        System.in.read();
    }

    @Configuration
    @PropertySource("classpath:/dubbo-provider.properties")
    @EnableDubbo(scanBasePackages = "com.example.service.impl")
    static class PropertiesConfig{

    }
}
